package com.zxx.common;
import android.content.Context;

import com.soufang.ui.R;

/**
 * @brief 公共通用类，目前包含了消息和字符串
 * @author zxx
 * 
 */
public class Common {
		
	public static final int MAXSQLDATANUM = 6;
	public static final int MESSAGE_INSERTSQL      		 = 0x124;//第一次进入时候插入数据库数据，以后每次都是查询数据按id升序排列
	public static final int MESSAGE_SELECTSQLAREA  	 	 = 0x125; //按小区查询数据
	public static final int MESSAGE_SELECTTOTALSQLPRICE  = 0x126; //按总价查询
	public static final int MESSAGE_SORTBYPRICEH_L 	 	 = 0x127; //按单价从高到低排列
	public static final int MESSAGE_SORTBYPRICEL_H 	 	 = 0x128; //按单价从低到高排列
	public static final int MESSAGE_SORTBYYEARH_L  	 	 = 0x129; //按年份从高到低排列
	public static final int MESSAGE_SORTBYYEARL_H  	 	 = 0x130; //按年份从低到高排列
	public static final int MESSAGE_SORTBYAREAH_L  	 	 = 0x131; //按面积由大到小排列
	public static final int MESSAGE_SORTBYAREAL_H 		 = 0x132; //按面积由小到大排列
	public static final int MESSAGE_SORTBYALL     		 = 0x133; //不限制，默认排序（id）
	public static final int MESSAGE_SELECTBYHOUSETYPE 	 = 0x134; //按户型选择
	public static final int MESSAGE_SELECTBYZX		 	 = 0x135; //按装修类型选择
	public static final int MESSAGE_SELECTBYPMPRICE	 	 = 0x136; //按单价选择
	
	public static final String KEY_CITY = "city";
	public static final String KEY_HOUSE_ITEM = "houseitemData";
	public static final String KEY_CITYINFO = "cityinfo";
	public static final String KEY_MAPINFO = "mapInfo";
	public static final String KEY_DEPARTINFO = "departInfo";
	
	
	 private static int[] departmentIds = new int[] {
			  R.string.all, R.string.gthy, R.string.lxxc, R.string.zgc, R.string.jtxc,
			  R.string.jnsd, R.string.cxxc,	R.string.xtxq, R.string.jzxq, R.string.mjxy,
			  R.string.hfhy
	  };
	 
	 private static int[] ZXArr = new int[] {
			  R.string.simple,
			  R.string.normal,R.string.luxery
	  };
	 
	 
	public static int GetDepartMenid(int index){
		return departmentIds[index];
	}
	
	public static int GetLengOFDepartMen(){
		return departmentIds.length;
	}
	
	public static int GetZXid(int index){
		return ZXArr[index];
	}
	
	public static int GetLengOFZX(){
		return ZXArr.length;
	}
	
}
